/*
 * @Author: 蔡科 caikeps@163.com
 * @Date: 2024-03-15 11:47:29
 * @LastEditors: 蔡科 caikeps@163.com
 * @LastEditTime: 2024-03-18 14:12:12
 * @FilePath: /go-max-ai-proxy-1/src/routers/rooter.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import CwPublicController from "../controller/CwPublicController";
const koaRouter = require("koa-router"); // 路由
const router = new koaRouter({ prefix: "" });
import { Routers } from "./route";

// 图片上传
router.post(Routers.cwUpload, CwPublicController.uploadImage);
router.post(Routers.cwSsoLogin, CwPublicController.ssoLogin);

router.get(Routers.cwGetAppList, CwPublicController.getAppList); 

router.get(Routers.cwGetAppCategoryList, CwPublicController.getAppCategoryList);

router.post(Routers.cwAddAppChatHistory, CwPublicController.addChatHistory); // 添加对话记录

router.get(Routers.cwGetAppChatHistory, CwPublicController.getChatHistory); // 添加对话记录
router.get(Routers.cwGetAppById, CwPublicController.getAppById); // 添加对话记录
router.get(Routers.cwGetAppChatHistoryList, CwPublicController.getChatHistoryList); // 添加对话记录

router.get(Routers.getMenuTree, CwPublicController.getMenuTree);
router.get(Routers.getMenuItem, CwPublicController.getMenuDetail);


export { router };

